#pragma once
#include<iostream>
#include"Furniture.h"
#include"Transport.h"
using namespace std;
class FurOrder {
public:
	void FurnitureDeliver(string type) {

		if (type == "modern") {
			unique_ptr<Furniture> furniture(new ModernFurniture);
			furniture->print();
		}
		else if (type == "art") {
			unique_ptr<Furniture> furniture(new ArtFurniture);
			furniture->print();
		}
		else {
			Furniture* furniture = nullptr;
		}
	}
};
class TransOrder {
public:
	void PlanDeliver(string type) {
		if (type == "sea") {
			unique_ptr<Transport>transport(new Ship);
			cout << transport->Deliver() << endl;
		}
		else if (type == "road") {
			unique_ptr<Transport>transport(new Truck);
			cout << transport->Deliver() << endl;
		}
		else {
			Transport* transport = nullptr;
		}
	}
};